package com.huawei.classroom.student.h06;

public class GameBase extends Base{
	public GameBase(int x,int y) {
		super(500,0,0,x,y);
	}
	
	public static GameBase createGameBase(int x,int y) {
		return new GameBase(x,y);
	}
	public Base building(EnumObjectType built,int x,int y) {
		if(built==EnumObjectType.barrack) {
			return new Barrack(x,y);
		}
		else if(built==EnumObjectType.warFactory) {
			return new WarFactory(x,y);
		}
		else return null;
	}
}